<?php
	class Main extends Model
	{
		var $database_config = 'db_config_default';
		public $name = 'parties';
		public $table_name = 'table_1';
		public $stored_procedure_list = 'test';
		public $stored_procedure_update = 'test';
		public $stored_procedure_get = 'test';
		public $stored_procedure_delete = 'sp_parties_delete';
		public $stored_procedure_insert = 'test1';
		public $db_structure = array
		(
			'id' => array			
			(
				'name' => 'user_id', 
				'type'=>'bigint',
				'length'=>'20',
				'primary_key'=>true,
				'not_null'=>true
			),

			'login' => array			
			(
				'name' => 'user_login', 
				'type'=>'varchar',
				'length'=>'50',
				'not_null'=>true
			),			
			
			'password' => array			
			(
				'name' => 'user_password', 
				'type'=>'char',
				'length'=>'32',
				'not_null'=>true
			),
						
			'record_id' => array			
			(
				'name' => 'record_id', 
				'type'=>'bigint',
				'not_null'=>false
			),			
			
			'parent_id' => array			
			(
				'name' => 'parent_id', 
				'type'=>'bigint',
				'not_null'=>false
			),			
			
			'table_name' => array			
			(
				'name' => 'table_name', 
				'type'=>'varchar',
				'not_null'=>false
			),			
			
		);
		
		function authentication($login, $password)
		{
			return $login.' '.$password;
		}		
	}
?>